from .base import Logger


class MQTTLogger(Logger):
    def __init__(self):
        super().__init__()
        self.__path = "/mqtt.log"
        self.__name = "mqtt log"

    def log(self, type="info", msg="-"):
        msg = f"{type}> {msg}\n"
        self.write(msg)
